package org.karelun.whiteboard.ui.cdo.editor;

import org.eclipse.emf.cdo.view.CDOView;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

/**
 * @Author: KarelunHuang
 * @Date: Jan 23, 2013
 **/
public class CDOEditorInput implements IEditorInput{

	private CDOView cdoView;
	
	private String resourcePath;
	
	public CDOEditorInput(CDOView cdoView,String resourcePath){
		this.cdoView=cdoView;
		this.resourcePath=resourcePath;
	}
	
	@Override
	public boolean exists() {
		return true;
	}
	
	@Override
	public Object getAdapter(Class adapter) {
		if(adapter==CDOView.class){
			return cdoView;
		}
		return null;
	}

	@Override
	public ImageDescriptor getImageDescriptor() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getName() {
		return "";
	}

	@Override
	public IPersistableElement getPersistable() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getToolTipText() {
		// TODO Auto-generated method stub
		return null;
	}

}
